package com.ellricky.baselib.adapter

import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.ellricky.baselib.R
import com.ellricky.baselib.entity.new.MarketActive

class MarketActiveAdapter : BaseRecyclerAdapter<MarketActive>(R.layout.base_adapter_market_active) {

    override fun onBindViewHolder(vh: SmartViewHolder, data: MarketActive, p2: Int) {
        vh.text(R.id.tvActAddress, "活动地点：${data.activity_address}")
            .text(R.id.tvActName, "活动名称：${data.activity_name}")
            .text(R.id.tvActCreateTime, "创建时间：${data.activity_createtime}")
            .text(R.id.tvActEndTime, "结束时间：${data.activity_endtime}")
            .text(R.id.tvActCreatePerson, "创建人：${data.employees_name}")
    }
}